#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main()
{
    string s1, s2, ans; cin >> s1 >> s2;
    if(s1.size() <= s2.size()) s1.insert(0, s2.size() - s1.size(), '0');
    else s2.insert(0, s1.size() - s2.size(), '0');
    int i = s1.size(), add = 0;
    while(--i >= 0)
    {
        int cur = (s1[i] - '0') + (s2[i] - '0') + add;
        add = cur / 10;
        cur = cur % 10;
        ans.insert(0, 1, cur + '0');
    }
    if(add) ans.insert(0, 1, add + '0');
    cout << ans;
    return 0;
}